package com.hangzhou.xyj.model.type;

/**
 * Created by yaohuix on 2016/3/2  14:48
 * <p/>
 * 说明：用户类型枚举
 */
public enum EUserType {
    //未知用户
    UNKNOWN(0),
    //普通用户
    NORMAL_USER(1),
    //认证个人
    AUTHORIZED_USER(2),
    //认证团体
    AUTHORIZED_TEAM(3),
    //名家
    FAMOUS_EXPERT(4),
    //名团
    FAMOUS_TEAM(5);

    private int value;

    EUserType(int value) {
        this.value = value;
    }

    public int getValue() {
        return this.value;
    }

    public static EUserType valueOf(int value) {
        switch (value) {
            case 1:
                return NORMAL_USER;
            case 2:
                return AUTHORIZED_USER;
            case 3:
                return AUTHORIZED_TEAM;
            case 4:
                return FAMOUS_EXPERT;
            case 5:
                return FAMOUS_TEAM;
            default:
                return UNKNOWN;
        }
    }

}
